package com.chenliang.anno;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @program: springboot_all
 * @description:
 * @author: 陈亮
 * @create: 2022-04-23 12:53
 */
@SpringBootApplication
public class AnnoApplication implements CommandLineRunner {


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(AnnoApplication.class, args);
        ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
        //System.out.println(beanFactory);
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("我开始执行啦");
    }
}
